<?php 
$asks = $dsql->setquery('select * from `#@__ask`  order by id desc limit 0,10');
$dsql->execute();
while($ask = $dsql->getarray())
{
	$asks[] = $ask;
}
?>
<div class="xgwenti">最新解答问题：</div>
<div class="xgwtbg">
<ul class="xgwtlist">
<?php foreach($asks as $ask){?>
<li><a href="question.php?id=<?php echo $ask[id];?>"><?php echo cn_substr($ask[title],50);?></a></li>
<?php }?>
</ul>
</div>